package com.guchenbo.example.jdbc;

import java.sql.*;

public class JdbcDemo {
    public static void main(String[] args) throws ClassNotFoundException, SQLException {
        Class.forName("com.mysql.cj.jdbc.Driver");
        Connection connection = DriverManager.getConnection(
                        "jdbc:mysql://10.57.16.13:3306/mingmo_2323?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false",
                        "model_paas_manager", "Liu_0123456789");

        String sql = "";
        PreparedStatement statement = connection.prepareStatement(sql);
        ResultSet resultSet = statement.executeQuery();
        while (resultSet.next()) {
            //
        }
    }
}
